<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body>
	<div class="d-1">
		<h2 class="h2-ac">疾病诊断与病情评估</h2>
		<div class="d-b1">
			<form name="apprForm1" class="fs16">
				<input type="hidden" name="cpAppr.apprId" value="${cpAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<p>
						肠镜检查次数：
						<span class="ml-10">
						<input class="ml-10" type="radio" name="cpAppr.q1" value="1" <c:if test="${cpAppr.q1 == 1 }"> checked="checked"</c:if> />首次
						<input class="ml-10" type="radio" name="cpAppr.q1" value="2" <c:if test="${cpAppr.q1 == 2 }"> checked="checked"</c:if> />第2次复查
						<input class="ml-10" type="radio" name="cpAppr.q1" value="3" <c:if test="${cpAppr.q1 == 3 }"> checked="checked"</c:if> />3次以上复查</span>
					</p>
					<p>
						肠镜检查目的：
						<span class="ml-10">
						<input class="ml-10" type="radio" name="cpAppr.q5" value="1" <c:if test="${cpAppr.q5 == 1 }"> checked="checked"</c:if> />常规体检
						<input class="ml-10" type="radio" name="cpAppr.q5" value="2" <c:if test="${cpAppr.q5 == 2 }"> checked="checked"</c:if> />排查消化系统疾病
						<input class="ml-10" type="radio" name="cpAppr.q5" value="3" <c:if test="${cpAppr.q5 == 3 }"> checked="checked"</c:if> />肠息肉切除</span>
					</p>
					<p>
						若之前做过肠镜，检查结果为：
						<span class="ml-10">
						<input class="ml-10" type="radio" name="cpAppr.q10" value="1" <c:if test="${cpAppr.q10 == 1 }"> checked="checked"</c:if> />肠息肉
						<input class="ml-10" type="radio" name="cpAppr.q10" value="2" <c:if test="${cpAppr.q10 == 2 }"> checked="checked"</c:if> />无器质性病变
						<input class="ml-10" type="radio" name="cpAppr.q10" value="3" <c:if test="${cpAppr.q10 == 3 }"> checked="checked"</c:if> />其他：
						<input class="ml-10" size=40 type="text" name="cpAppr.q10Value" value="${cpAppr.q10Value}"/></span>
					</p>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprSave1()">保存</a>
			</form>
		</div>
		<div class="d-b1 pt5">
			<form name="apprForm2" onsubmit="return false;" class="fs16">
				<input type="hidden" name="cpAppr.apprId" value="${cpAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<div>舌脉</div>
					<div class="pl50">
						<div>
							<label>舌：</label>
							<input type="text" size="80" name="cpAppr.q15" value="${cpAppr.q15}"/>
						</div>
						<div class="pt10">
							<label>脉：</label>
							<input type="text" size="80" name="cpAppr.q20" value="${cpAppr.q20}"/>
						</div>
					</div>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprSave2()">保存</a>
			</form>
		</div>
		<div class="d-b1 pt5">
			<form name="apprForm3" action="" onsubmit="return false;" class="fs16">
				<input type="hidden" name="cpAppr.apprId" value="${cpAppr.apprId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
				<div>
					<div>诊断</div>
					<div class="pl50">
						<p>中医诊断：
							<input class="ml-10" type="checkbox" name="cpAppr.q25_1" value="1" <c:if test="${cpAppr.q25_1 == 1 }"> checked="checked"</c:if> >大肠息肉
							<input class="ml-10" type="checkbox" name="cpAppr.q25_2" value="1" <c:if test="${cpAppr.q25_2 == 1 }"> checked="checked"</c:if> >腹痛
							<input class="ml-10" type="checkbox" name="cpAppr.q25_3" value="1" <c:if test="${cpAppr.q25_3 == 1 }"> checked="checked"</c:if> >腹胀
							<input class="ml-10" type="checkbox" name="cpAppr.q25_4" value="1" <c:if test="${cpAppr.q25_4 == 1 }"> checked="checked"</c:if> >泄泻
							<input class="ml-10" type="checkbox" name="cpAppr.q25_5" value="1" <c:if test="${cpAppr.q25_5 == 1 }"> checked="checked"</c:if> >便血
							<input class="ml-10" type="checkbox" name="cpAppr.q25_6" value="1" <c:if test="${cpAppr.q25_6 == 1 }"> checked="checked"</c:if> >便秘
							<input class="ml-10" type="checkbox" name="cpAppr.q25_7" value="1" <c:if test="${cpAppr.q25_7 == 1 }"> checked="checked"</c:if> >其他：
							<input class="ml-5" type="text" name="cpAppr.q25Value" value="${cpAppr.q25Value}"/>
						</p>
						<p>中医证型：
							<input class="ml-10" type="checkbox" name="cpAppr.q30_1" value="1" <c:if test="${cpAppr.q30_1 == 1 }"> checked="checked"</c:if> >肠道湿热 
							<input class="ml-10" type="checkbox" name="cpAppr.q30_2" value="1" <c:if test="${cpAppr.q30_2 == 1 }"> checked="checked"</c:if> >气滞血瘀
							<input class="ml-10" type="checkbox" name="cpAppr.q30_3" value="1" <c:if test="${cpAppr.q30_3 == 1 }"> checked="checked"</c:if> >脾虚夹湿
							<input class="ml-10" type="checkbox" name="cpAppr.q30_4" value="1" <c:if test="${cpAppr.q30_4 == 1 }"> checked="checked"</c:if> >阳虚寒凝
							<input class="ml-10" type="checkbox" name="cpAppr.q30_5" value="1" <c:if test="${cpAppr.q30_5 == 1 }"> checked="checked"</c:if> >其他：
							<input class="ml-5" type="text" name="cpAppr.q30Value" value="${cpAppr.q30Value}"/>
						</p>
						<p>西医诊断:
							<input class="ml-10" type="checkbox" name="cpAppr.q35_1" value="1" <c:if test="${cpAppr.q35_1 == 1 }"> checked="checked"</c:if> >无肠道器质性病变 
							<input class="ml-10" type="checkbox" name="cpAppr.q35_2" value="1" <c:if test="${cpAppr.q35_2 == 1 }"> checked="checked"</c:if> >结肠息肉
							<input class="ml-10" type="checkbox" name="cpAppr.q35_3" value="1" <c:if test="${cpAppr.q35_3 == 1 }"> checked="checked"</c:if> >直肠息肉
							<input class="ml-10" type="checkbox" name="cpAppr.q35_4" value="1" <c:if test="${cpAppr.q35_4 == 1 }"> checked="checked"</c:if> >结直肠息肉
							<input class="ml-10" type="checkbox" name="cpAppr.q35_5" value="1" <c:if test="${cpAppr.q35_5 == 1 }"> checked="checked"</c:if> >其他：
							<input class="ml-5" type="text" name="cpAppr.q35Value" value="${cpAppr.q35Value}"/>
						</p>
					</div>
				</div>
				<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="apprSave3()">保存</a>
			</form>
		</div>
	</div>
	<script type="text/javascript">
	
		$(function() {
			//起病时间
			$('input[name="mgAppr.qibing_day"]').datebox();
			//确诊时间
			$('input[name="mgAppr.quezhen_day"]').datebox();
		});
	
		function apprSave1() {
			$(apprForm1).form('submit',{
				url: __MANAGER+'cokicpolypDoc_apprSave1.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function apprSave2() {
			$(apprForm2).form('submit',{
				url: __MANAGER+'cokicpolypDoc_apprSave2.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function apprSave3() {
			$(apprForm3).form('submit',{
				url: __MANAGER+'cokicpolypDoc_apprSave3.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function apprSave4() {
			$(apprForm4).form('submit',{
				url: __MANAGER+'myastheniaDoc_apprSave4.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function addLine(t) {
			$(t).prevAll().wrap('<p></p>');
			$(t).before('<input type="text" name="diseases" value="">');
		}
	</script>
</body>
</html>
